package com.goldcn.user.dao;

import com.goldcn.user.model.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Subject record);

    int insertSelective(Subject record);

    Subject selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Subject record);

    int updateByPrimaryKeyWithBLOBs(Subject record);

    int updateByPrimaryKey(Subject record);

    Subject selectByTitle(@Param(value = "title") String title, @Param(value = "companyID") Long companyID);

    List<Subject> selectAllList(Long companyID);

    int insertBatch(List<Subject> record);

    Subject selectByCompanyLimit1(Long companyID);
}